
from typing import Optional
from sqlmodel import Field
from models.user_model import UserBase

class UserCreate(UserBase):
    password:str = Field(default=...,max_length=200,title="密码")
    verify_password:str = Field(default=...,max_length=200,title="验证密码")

class UserPublic(UserBase):
    id:Optional[int] = Field(default=None)
